package com.kust.smarthome.web.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel("返回用户获取的订单信息")
public class OrderDto {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单号")
    private String id;

    @ApiModelProperty("商品信息id")
    private String commodityId;

    @ApiModelProperty("收件人信息id")
    private Integer addressId;

    @ApiModelProperty("快递号")
    private String courierNumber;

    @ApiModelProperty("金额")
    private Double money;

    @ApiModelProperty("时间")
    private LocalDateTime created;

    @ApiModelProperty("商品名称")
    private String name;

    @ApiModelProperty("商品描述")
    private String intro;

    @ApiModelProperty("商品数量")
    private String commodityNumber;

    @ApiModelProperty("商品图片(首页图缩略)")
    private String imgurl1;

    @ApiModelProperty("商品状态")
    private Integer state;

}
